|
DELETE OBJECTS
This command will delete a group of objects between the two specified values, inclusively, and is faster than deleting the range of objects individually.
DELETE OBJECTS From, To
From
Integer
The first object number
To
Integer
The last object number
This command does not return a value.
If you used the SET GLOBAL OBJECT CREATION command to share vertex buffers, this command takes considerably longer as it disentangles itself from existing buffers.
backdrop off
set global object creation 0
for o=1 to 10000
make object cube o,10
next o
sync
t=timer()
delete objects 1,10000
print timer()-t;"ms - press a key"
wait key
set global object creation 1
for o=1 to 10000
make object cube o,10
next o
sync
t=timer()
delete objects 1,10000
print timer()-t;"ms - press a key"
wait key
BASIC3D Commands Menu
Index
|